package com.nj.liandi.gulimall.product.feign.fallback;

import com.nj.liandi.common.exception.BizeCodeEnume;
import com.nj.liandi.common.utils.R;
import com.nj.liandi.gulimall.product.feign.SeckillFeignService;
import org.springframework.stereotype.Component;

/**
 * description: 远程服务调用失败之后返回这个方法
 * date: 2021/11/12 16:26
 * author: maizj
 * version: 1.0
 */
@Component
public class SeckillFeignServiceFallBack implements SeckillFeignService {
    @Override
    public R getSkuSeckillInof(Long skuId) {
        return R.error(BizeCodeEnume.TOO_MANY_REQUEST.getCode(),BizeCodeEnume.TOO_MANY_REQUEST.getMessage());
    }
}
